package com.meizi.core.tool.status;

/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2020/11/26 12:53
 */
public enum BaseStatus implements IStatus {
    SUCCESS(0, "成功"),
    UNKNOW_EXCEPTION(-1,"未知异常");

    private int code;
    private String msg;

    BaseStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return  code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
